FLAGS = -Wall -Werror -Wextra -std=c11

all: s21_grep

s21_grep:
	gcc $(FLAGS) -o s21_grep grep.c

build_test:
	gcc $(FLAGS) -o grep_test grep_test.c
	./grep_test

test: s21_grep build_test clang 

clang:
	clang-format --style=google -n *.c
	clang-format --style=google -n *.h